package com.cipe.cmrs.model;

import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * <p>
 * Pojo mapping TABLE dbo.PaymentRequestStatus
 * </p>
 * 
 * <p>
 * Generated at Sat Dec 03 14:39:48 PKT 2011
 * </p>
 * 
 * @author Incepio
 * 
 */
@Entity
@Table(name = "paymentrequeststatus")
@SuppressWarnings("serial")
public class Paymentrequeststatus extends BaseAuditEntity {

	/**
	 * Attribute effectiveDate.
	 */
	@Basic
	@Column(name = "effectivedate")
	private Timestamp			effectiveDate;
	/**
	 * Attribute paymentrequest
	 */
    @ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "paymentrequestid")
	private Paymentrequest		paymentrequest;
	/**
	 * Attribute paymentstatustype
	 */
    @ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "paymentstatustypeid")
	private Paymentstatustype	paymentstatustype;

	/**
	 * @return effectiveDate
	 */
	public Timestamp getEffectiveDate() {
		return effectiveDate;
	}

	/**
	 * get paymentrequest
	 */
	public Paymentrequest getPaymentrequest() {
		return this.paymentrequest;
	}

	/**
	 * get paymentstatustype
	 */
	public Paymentstatustype getPaymentstatustype() {
		return this.paymentstatustype;
	}

	/**
	 * @param effectiveDate
	 *            new value for effectiveDate
	 */
	public void setEffectiveDate(Timestamp effectiveDate) {
		this.effectiveDate = effectiveDate;
	}

	/**
	 * set paymentrequest
	 */
	public void setPaymentrequest(Paymentrequest paymentrequest) {
		this.paymentrequest = paymentrequest;
	}

	/**
	 * set paymentstatustype
	 */
	public void setPaymentstatustype(Paymentstatustype paymentstatustype) {
		this.paymentstatustype = paymentstatustype;
	}
}